//1.使用scanf()读取输入的下载速度和文件大小
//2.根据计算得出文件下载时间，1 byte = 8 bit
//3.根据要求使用printf()的修饰符打印输出

#include <stdio.h>

#define BYTE_TO_BIT 8

int main(void)
{
    float speed, size, time;

    printf("Please enter download speed(unit: Mb/s) and file size(unit: MB): ");
    scanf("%f %f", &speed, &size);

    time = size * BYTE_TO_BIT / speed;

    printf("At %.2f megabits per second, a file of %.2f megabytes\n", speed, size);
    printf("downloads in %.2f seconds\n", time);

    return 0;
}